-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refine the unit test of convolution function. #3392
Conversation
More and more test files are added to paddle/function, for users, it looks very messy, should we consider to building a folder ? |
The refinement of the test of convolution function looks great to me. |
Put the test file and source file in one directory is a new convention. You can see in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
赞!删了这么多代码!
有一个 C-style cast,应该改成C++ style 的。
CHECK_EQ(strideW(), 1); | ||
|
||
// TODO(hedaoyuan): There has some bug when batchSize > 1 and groups_ > 1. | ||
CHECK_EQ(groups_, (size_t)1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(size_t)1
==> size_t(1)
or static_cast<size_t>(1)
, according to Google C++ style https://google.github.io/styleguide/cppguide.html#Casting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing out. Done.
* fix bug when benchmark=True * split warmup and repeat
No description provided.